package com.hosever.controller;

import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.hosever.core.AbstractController;
import com.hosever.model.PageView;
import com.hosever.service.PageViewService;

@Controller
@RequestMapping("/")
public class HomeController extends
		AbstractController<PageView, PageViewService> {

	@RequestMapping("/home")
	public String welcome(HttpSession session) {
		session.setAttribute("nav", "home");
		return getRelativePath("/home");
	}
}
